from selenium.webdriver.common.by import By
from pages.base_page import BasePage
"""客户-联系人页面做的操作"""
class ContactsPage(BasePage):
    click_add_contacts_locator = (By.CSS_SELECTOR,'body > div.container > div.row > div:nth-child(1) > div > a > i')
    click_random_look_contacts_locator=(By.LINK_TEXT,'查看')
    def click_add_contacts(self):
        '''点击新建联系人'''
        self.driver.find_element(*self.click_add_contacts_locator).click()

    def click_random_look(self):
        '''点击任意查看'''
        self.driver.find_element(*self.click_random_look_contacts_locator).click()

